var setting = require("../setting");
var mongoose = require('mongoose');

var opts = {
	user: setting.user,
	pass: setting.pass
};
mongoose.connect(setting.host, setting.db, setting.port, opts);

module.exports = mongoose;